.select-product-modal {
  .modal-content {
    display: flex;
    gap: 16px;
    height: 580px;

    .left-section {
      width: 220px;
      border: 1px solid #f0f0f0;
      border-radius: 4px;
      padding: 0;
      overflow: hidden;

      .category-header {
        padding: 14px 18px;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        background-color: #fafafa;
      }

      .ant-tree {
        padding: 8px;
        font-size: 14px;
        height: calc(100% - 41px);
        overflow: auto;
      }
    }

    .right-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      
      .toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        background-color: #fafafa;
        padding: 14px 16px;
        
        .left-tools {
          display: flex;
          gap: 10px;

          .ant-btn {
            height: 34px;
            font-size: 14px;
            padding: 0 16px;

            &.ant-btn-primary {
              background-color: #1890ff;
            }
          }
        }
        
        .right-tools {
          display: flex;
          gap: 10px;
          align-items: center;

          .ant-input-search {
            .ant-input {
              height: 34px;
              font-size: 14px;
              border-radius: 4px 0 0 4px;
            }
            .ant-input-search-button {
              height: 34px;
              border-radius: 0 4px 4px 0;
            }
          }

          .ant-btn {
            height: 34px;
            font-size: 14px;
          }
        }
      }

      .ant-table-wrapper {
        flex: 1;
        border: 1px solid #f0f0f0;
        border-radius: 4px;
        overflow: hidden;
        
        .ant-table {
          .ant-table-container {
            height: 420px;
          }
          
          .ant-table-body {
            height: calc(100% - 40px);
            overflow-y: auto !important;

            .ant-table-thead {
              > tr > th {
                background-color: #fafafa;
                font-weight: 500;
                font-size: 14px;
                padding: 12px 8px !important;
              }
            }

            .ant-table-tbody {
              > tr > td {
                font-size: 14px;
                padding: 10px 8px !important;
              }
            }

            .checkbox-header {
              display: flex;
              align-items: center;
              gap: 8px;
            }

            .product-name {
              color: #1890ff;
              text-decoration: none;

              &:hover {
                text-decoration: underline;
              }
            }

            .image-placeholder {
              width: 48px;
              height: 48px;
              background-color: #f5f5f5;
              border-radius: 4px;
            }
          }
        }
      }

      .table-footer {
        margin-top: 16px;
        display: flex;
        justify-content: center;
        align-items: center;

        .page-info {
          display: flex;
          align-items: center;
          gap: 10px;

          span {
            color: #666;
            font-size: 14px;
          }

          .ant-select {
            margin-left: 16px;
            font-size: 14px;

            .ant-select-selector {
              height: 34px !important;
              line-height: 32px !important;
            }
          }
        }
      }
    }
  }

  // 调整弹窗样式
  &.ant-modal {
    .ant-modal-content {
      padding: 0;

      .ant-modal-header {
        margin: 0;
        padding: 18px 24px;
        border-bottom: 1px solid #f0f0f0;

        .ant-modal-title {
          font-size: 16px;
        }
      }

      .ant-modal-body {
        padding: 20px;
      }

      .ant-modal-footer {
        margin: 0;
        padding: 18px 24px;
        border-top: 1px solid #f0f0f0;

        .ant-btn {
          height: 34px;
          font-size: 14px;
          padding: 0 20px;
        }
      }
    }
  }
}

// 调整表格样式
.ant-table-small {
  .ant-table-cell {
    padding: 10px 8px !important;
  }
}

// 树形控件样式
.ant-tree {
  .ant-tree-treenode {
    padding: 6px 0;

    .ant-tree-node-content-wrapper {
      padding: 6px 10px;

      &:hover {
        background-color: #e6f7ff;
      }

      &.ant-tree-node-selected {
        background-color: #bae7ff;
      }
    }
  }
} 